package org.gongzhen.main.UserService.UserServiceImpl;

import org.gongzhen.User;
import org.gongzhen.main.UserMapper.UserMapper;
import org.gongzhen.main.UserService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}
